<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (iOS): CPTMutablePlotRange Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (iOS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('interface_c_p_t_mutable_plot_range.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">CPTMutablePlotRange Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CPTMutablePlotRange" --><!-- doxytag: inherits="CPTPlotRange" -->
<p>Defines a mutable range of plot data.  
 <a href="interface_c_p_t_mutable_plot_range.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for CPTMutablePlotRange:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_mutable_plot_range__inherit__graph.png" border="0" usemap="#_c_p_t_mutable_plot_range_inherit__map" alt="Inheritance graph"/></div>
<map name="_c_p_t_mutable_plot_range_inherit__map" id="_c_p_t_mutable_plot_range_inherit__map">
<area shape="rect" id="node2" href="interface_c_p_t_plot_range.html" title="Defines an immutable range of plot data." alt="" coords="209,166,319,197"/><area shape="rect" id="node4" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="24,86,104,117"/><area shape="rect" id="node6" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="5,6,123,37"/><area shape="rect" id="node8" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="128,86,249,117"/><area shape="rect" id="node10" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html" title="\&lt;NSCopying&#45;p\&gt;" alt="" coords="274,86,403,117"/><area shape="rect" id="node12" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSMutableCopying_Protocol/Reference/Reference.html" title="\&lt;NSMutableCopying&#45;p\&gt;" alt="" coords="427,86,607,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for CPTMutablePlotRange:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_mutable_plot_range__coll__graph.png" border="0" usemap="#_c_p_t_mutable_plot_range_coll__map" alt="Collaboration graph"/></div>
<map name="_c_p_t_mutable_plot_range_coll__map" id="_c_p_t_mutable_plot_range_coll__map">
<area shape="rect" id="node2" href="interface_c_p_t_plot_range.html" title="Defines an immutable range of plot data." alt="" coords="209,166,319,197"/><area shape="rect" id="node4" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="24,86,104,117"/><area shape="rect" id="node6" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="5,6,123,37"/><area shape="rect" id="node8" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="128,86,249,117"/><area shape="rect" id="node10" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html" title="\&lt;NSCopying&#45;p\&gt;" alt="" coords="274,86,403,117"/><area shape="rect" id="node12" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSMutableCopying_Protocol/Reference/Reference.html" title="\&lt;NSMutableCopying&#45;p\&gt;" alt="" coords="427,86,607,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_c_p_t_mutable_plot_range-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Instance Methods</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Combining Ranges</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_mutable_plot_range.html#af6cfb4dc6521c31aae749eb99eeb1c2c">unionPlotRange:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Extends the range to include another range. The sign of <code>length</code> is unchanged.  <a href="#af6cfb4dc6521c31aae749eb99eeb1c2c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_mutable_plot_range.html#a62194987b2b52b4d60fb74a44b39af19">intersectionPlotRange:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the messaged object to the intersection with another range. The sign of <code>length</code> is unchanged.  <a href="#a62194987b2b52b4d60fb74a44b39af19"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Shifting Ranges</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_mutable_plot_range.html#ae53f4352e797ad53002b709e92aa3e0d">shiftLocationToFitInRange:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves the whole range so that the location fits in other range.  <a href="#ae53f4352e797ad53002b709e92aa3e0d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_mutable_plot_range.html#a9a6763fd5a347e716c9bac799bef5637">shiftEndToFitInRange:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves the whole range so that the end point fits in other range.  <a href="#a9a6763fd5a347e716c9bac799bef5637"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Expanding/Contracting Ranges</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_mutable_plot_range.html#ae006c95556504e72611d50b1b165d814">expandRangeByFactor:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Extends/contracts the range by a factor.  <a href="#ae006c95556504e72611d50b1b165d814"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Range Limits</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac0b080bf56b8830c38cfe13288b1c874"></a><!-- doxytag: member="CPTMutablePlotRange::location" ref="ac0b080bf56b8830c38cfe13288b1c874" args="" -->
<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_mutable_plot_range.html#ac0b080bf56b8830c38cfe13288b1c874">location</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The starting value of the range. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8af4c39b1f09fc3b3f68f4183960825c"></a><!-- doxytag: member="CPTMutablePlotRange::length" ref="a8af4c39b1f09fc3b3f68f4183960825c" args="" -->
<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_mutable_plot_range.html#a8af4c39b1f09fc3b3f68f4183960825c">length</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The length of the range. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Defines a mutable range of plot data. </p>
<p>If you need to change the plot range, you should use this class rather than the immutable super class. </p>
</div><hr/><h2>Method Documentation</h2>
<a class="anchor" id="ae006c95556504e72611d50b1b165d814"></a><!-- doxytag: member="CPTMutablePlotRange::expandRangeByFactor:" ref="ae006c95556504e72611d50b1b165d814" args="(NSDecimal factor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="interface_c_p_t_mutable_plot_range.html#ae006c95556504e72611d50b1b165d814">expandRangeByFactor:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>)&#160;</td>
          <td class="paramname"><em>factor</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Extends/contracts the range by a factor. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">factor</td><td>Factor used. A value of 1.0 gives no change. Less than 1.0 is a contraction, and greater than 1.0 is expansion. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a62194987b2b52b4d60fb74a44b39af19"></a><!-- doxytag: member="CPTMutablePlotRange::intersectionPlotRange:" ref="a62194987b2b52b4d60fb74a44b39af19" args="(CPTPlotRange *otherRange)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="interface_c_p_t_mutable_plot_range.html#a62194987b2b52b4d60fb74a44b39af19">intersectionPlotRange:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_p_t_plot_range.html">CPTPlotRange</a> *)&#160;</td>
          <td class="paramname"><em>other</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the messaged object to the intersection with another range. The sign of <code>length</code> is unchanged. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>The other plot range. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9a6763fd5a347e716c9bac799bef5637"></a><!-- doxytag: member="CPTMutablePlotRange::shiftEndToFitInRange:" ref="a9a6763fd5a347e716c9bac799bef5637" args="(CPTPlotRange *otherRange)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="interface_c_p_t_mutable_plot_range.html#a9a6763fd5a347e716c9bac799bef5637">shiftEndToFitInRange:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_p_t_plot_range.html">CPTPlotRange</a> *)&#160;</td>
          <td class="paramname"><em>otherRange</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Moves the whole range so that the end point fits in other range. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">otherRange</td><td>Other range. The minimum possible shift is made. The range length is unchanged. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae53f4352e797ad53002b709e92aa3e0d"></a><!-- doxytag: member="CPTMutablePlotRange::shiftLocationToFitInRange:" ref="ae53f4352e797ad53002b709e92aa3e0d" args="(CPTPlotRange *otherRange)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="interface_c_p_t_mutable_plot_range.html#ae53f4352e797ad53002b709e92aa3e0d">shiftLocationToFitInRange:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_p_t_plot_range.html">CPTPlotRange</a> *)&#160;</td>
          <td class="paramname"><em>otherRange</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Moves the whole range so that the location fits in other range. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">otherRange</td><td>Other range. The minimum possible shift is made. The range length is unchanged. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af6cfb4dc6521c31aae749eb99eeb1c2c"></a><!-- doxytag: member="CPTMutablePlotRange::unionPlotRange:" ref="af6cfb4dc6521c31aae749eb99eeb1c2c" args="(CPTPlotRange *otherRange)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="interface_c_p_t_mutable_plot_range.html#af6cfb4dc6521c31aae749eb99eeb1c2c">unionPlotRange:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_p_t_plot_range.html">CPTPlotRange</a> *)&#160;</td>
          <td class="paramname"><em>other</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Extends the range to include another range. The sign of <code>length</code> is unchanged. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>The other plot range. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>Source/<a class="el" href="_c_p_t_mutable_plot_range_8h_source.html">CPTMutablePlotRange.h</a></li>
<li>Source/CPTMutablePlotRange.m</li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="interface_c_p_t_mutable_plot_range.html">CPTMutablePlotRange</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
